<?php include($folder.'/layouts/templates/frontend/header.tpl') ?>
<script type="text/javascript">
$(document).ready( function() {
	switchImages(0, 1)
})
function switchImages(img1, img2)
{
	setTimeout( function() {
		$("#img"+img1).fadeTo("slow", 0.5, function() {
			$("#img"+img1).fadeTo("slow", 0)
			$("#img"+img2).fadeTo("slow", 1, function() {
				do {
					img1 = Math.floor(Math.random()*4)
				} while (img1 == img2)
				//alert(img1+'   '+img2)
				switchImages(img2, img1)
			})
		})
	}, 1500)
}
</script>
<?php include($folder.'/layouts/templates/frontend/middle.tpl') ?>
<center>
"Ahol a kincsed, ott van a szíved is." (Mt 6,21)
<br /><br />
<?php echo $content['welcomeText'] ?>
</center>
<?php echo dataList(array(
	'id'=>'main',
	'itemsPerPage' => 0,
	'selectMethod' => 'mainpictures_select',
	'cellTemplate'=>'<div style="width:100%;text-align:center">
		<img src="'.$prefix.'/kep-kicsi?id={pictureID}" style="{transparency}" id="img{i}" alt="" />
		</div>',
	'columnCount'=>2,
	'tableAttributes'=>'cellpadding="0px" style="border-width:0px;margin:0px;padding:0px" width="100%"')) ?>
<?php include($folder.'/layouts/templates/frontend/footer.tpl') ?>